package com.example.test.springdemo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "3.2.3 后台用户角色表")
public class AdminRole implements Serializable {
    @ApiModelProperty(value = "主键",dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "角色名称",dataType = "String")
    private String roleName;

    @ApiModelProperty(value = "角色备注说明",dataType = "String")
    private String remark;

    @ApiModelProperty(value = "创建当前角色的用户",dataType = "String")
    private String gmtCreateUser;

    @ApiModelProperty(value = "修改当前角色的用户",dataType = "String")
    private String gmtModifyUser;

    @ApiModelProperty(value = "创建角色的时间",dataType = "Date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreateTime;

    @ApiModelProperty(value = "修改角色的时间",dataType = "Date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtModifyTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGmtCreateUser() {
        return gmtCreateUser;
    }

    public void setGmtCreateUser(String gmtCreateUser) {
        this.gmtCreateUser = gmtCreateUser;
    }

    public String getGmtModifyUser() {
        return gmtModifyUser;
    }

    public void setGmtModifyUser(String gmtModifyUser) {
        this.gmtModifyUser = gmtModifyUser;
    }

    public Date getGmtCreateTime() {
        return gmtCreateTime;
    }

    public void setGmtCreateTime(Date gmtCreateTime) {
        this.gmtCreateTime = gmtCreateTime;
    }

    public Date getGmtModifyTime() {
        return gmtModifyTime;
    }

    public void setGmtModifyTime(Date gmtModifyTime) {
        this.gmtModifyTime = gmtModifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleName=").append(roleName);
        sb.append(", remark=").append(remark);
        sb.append(", gmtCreateUser=").append(gmtCreateUser);
        sb.append(", gmtModifyUser=").append(gmtModifyUser);
        sb.append(", gmtCreateTime=").append(gmtCreateTime);
        sb.append(", gmtModifyTime=").append(gmtModifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
